package com.ftg.learn.chapter09.listtest;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * 移除List中特定的元素
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/8/16 10:37
 */

public class remove {

    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        list.add("999");
        list.add("9lll");
        list.add("uuu");
        System.out.println(list);
        System.out.println("输入删除的元素");
        Scanner scanner=new Scanner(System.in);
        String str=scanner.next();
        list.remove(str);
        System.out.println(list);
    }
}
